<%@taglib uri="/struts-tags" prefix="s" %>
<html>
<head>
<title>Category Edit Page</title>
</head>
<body>
<div align="center" class="crud">
<s:form action="CategoryCrudAction.html?action=save">
	<table>
	<tr>
	<s:hidden name="categoryDto.id"></s:hidden>
	<td>Category Name</td>
	<td>
	<s:textfield name="categoryDto.name" label="Category Name"></s:textfield>
	</td>
	</tr>
	<tr>
	<td>Select Parent Category</td>
	<td>
		<s:select list="categories" listKey="id" listValue="name" name="categoryDto.parentCategoryId" headerKey="-1" headerValue=""></s:select>
	</td>
	</tr>
	<tr>
	<td>
		<a href="javascript:void(0);" class="saveButton" onclick="$(this).parents('form:first').submit();"></a>
	</td>
	</tr>
	</table>
</s:form>
</div>
</body>
</html>